import Vue from 'vue'
import Vuex from 'vuex'
import conf from './../../../conf'

Vue.use(Vuex)

const _defaults = {
  state: {},
  getters: {},
  mutations: {},
  actions: {}
}

class Store {

  constructor(config = {}) {
    return new Vuex.Store(Object.assign({}, _defaults, conf._defaults, config));
  }

}

export default Store
